<?php


namespace app\api\model\User;


use think\facade\Db;
use think\Model;

class PartnerModel extends Model
{

    /**
     * 数据表名
     * @var string
     */
    protected $name = "partner";

    /**
     * 根据条件查询单条数据
     * @param $where
     * @param string $field
     * @return mixed
     * @throws
     */
    public static function getPartnerWhere($where = [],$field="*")
    {
        $partner = Db::name("partner")->field($field)->where($where)->find();
        return $partner;
    }




}